package com.core.sdk.utils;

import android.os.Build;
import android.telephony.TelephonyManager;

import com.google.inject.Inject;
import com.google.inject.Singleton;

/**
 * 手机功能 
 * 
 * @author liguo
 */

@Singleton
public class PhoneUtil {
	
	@Inject
	private TelephonyManager telephonyManager;
	
	public String getModel() {
		return Build.MODEL;
	}

	public String getIMEI() {
		return telephonyManager.getDeviceId();
	}

	public String getLine1Number() {
		return telephonyManager.getLine1Number();
	}

	public String getSimSerialNumber() {
		return telephonyManager.getSimSerialNumber();
	}

	public String getSubscriberId() {
		return telephonyManager.getSubscriberId();
	}

	public String getDeviceSoftwareVersion() {
		return telephonyManager.getDeviceSoftwareVersion();
	}

	public String getSdkVersion() {
		return Build.VERSION.SDK;
	}

	public String getReleaseVersion() {
		return Build.VERSION.RELEASE;
	}

}
